class Employee:
 """一个表示雇员的类"""
 def __init__(self, f_name, l_name, salary):
     """初始化雇员"""
     self.first = f_name.title()
     self.last = l_name.title()
     self.salary = salary
 def give_raise(self, amount=5000):
     """给雇员加薪"""
     self.salary += amount
from employee import Employee
def test_give_default_raise():
    """测试使用默认的年薪增加量是否可行"""
    employee = Employee('eric', 'matthes', 65_000)
    employee.give_raise()
    assert employee.salary == 70_000
def test_give_custom_raise():
     """测试自定义年薪增加量是否可行"""
     employee = Employee('eric', 'matthes', 65_000)
     employee.give_raise(10000)
     assert employee.salary == 75_000